<?php /* Smarty version Smarty-3.1.18, created on 2017-05-17 08:24:46
         compiled from "/data/www/mystery/protected/modules/webadmin/views/question/zip.tpl" */ ?>
<?php /*%%SmartyHeaderCode:99781949355280a0e0c8c24-73252904%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '63f49a96b74b3c47e8349e056792474a3dbfc3a2' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/question/zip.tpl',
      1 => 1494904925,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '99781949355280a0e0c8c24-73252904',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55280a0e12ae49_55173900',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55280a0e12ae49_55173900')) {function content_55280a0e12ae49_55173900($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<table width="100%" border="0" cellspacing="0">
	<tr>
		<td width="13%" valign="top">
            <?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		</td>
		
    <td width="87%" valign="top">
            <table width="100%" border="0" cellspacing="0">
            <tr>
                <td>
                <div class="pad_10">
                <div class="table-list">
                    <table width="100%">
                    <thead>
                        <tr>
                                <th width="58">问卷编号</th>
                                <th width="132">问卷名称</th>
                                <th width="121">ZIP文件名</th>
                                <th width="120">更新时间</th>
                                <th width="330">处理结果</th>
                                <th width="115">状态</th>
                                <th width="100">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                        <tr onMouseOver="this.className = 'tr2'" onMouseOut="this.className = 'tr1'" class="tr1" id="nqz_<?php echo $_smarty_tpl->tpl_vars['val']->value['nqz_id'];?>
">
                                <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['identifier'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['val']->value['question_name'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['val']->value['zip_name'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['val']->value['update_time'];?>
</td>
                                <td><a href="javascript:;" onclick="layer.alert('<?php echo $_smarty_tpl->tpl_vars['val']->value['remark'];?>
');"><?php echo msubstr($_smarty_tpl->tpl_vars['val']->value['remark'],30);?>
</a></td>
                                <td><?php if ($_smarty_tpl->tpl_vars['val']->value['is_dispose']==1) {?>未处理<?php } else { ?>已处理<?php }?></td>
                                <td><a href="javascript:;" name="delete" rel="<?php echo $_smarty_tpl->tpl_vars['val']->value['nqz_id'];?>
">删除</a></td>
                        </tr>
                        <?php } ?>
                    </tbody>
                    </table>

                    <div style="float:right;"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
            </div>
        </div>

        </td>
        </tr>
        </table>

		</td>

	</tr>
</table>
<script type="text/javascript">
	$(document).ready(function ($) {
		$('a[name="delete"]').click(function () {
			var id = $(this).attr('rel');
			if (id == '') {
				return false;
			}
			$or = confirm('你确定要删除吗？');
			if ($or) {
				$.ajax({
					type: 'post',
					async: true,
					dataType: "json",
					data: {'nqz_id':id},
					url: '/webadmin/question/DelZip',
					success: function (data) {
						alert(data.msg);
						if (!data.ok) {
							return false;
						} else {
							$('#nqz_'+id).remove();
						}
					}
				});
			}
		});
	});
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
